<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                template="./../layout/layout_egresado.xhtml"
                xmlns:h="http://xmlns.jcp.org/jsf/html"
                xmlns:p="http://primefaces.org/ui"
                xmlns:f="http://xmlns.jcp.org/jsf/core">

    <ui:define name="top">
    </ui:define>

    <ui:define name="content">
        <h:form>
            <p:growl id="growl_alumno_actualizar" for="growl_al_ac_1" showDetail="true" life="1000"  />
            <p:panel header="Datos Personales">
                <h:panelGrid columns="2" styleClass="panelGridCenter"  columnClasses="column" cellpadding="5">
                    <p:outputLabel value="Nombres: *" />
                    <p:inplace editor="true">                        
                        <p:inputText value="#{loginAlumnoController.alumno.tnmAlmn}" required="true"/>
                    </p:inplace>

                    <p:outputLabel value="Apellido paterno:" />
                    <p:inplace editor="true">
                        <p:inputText value="#{loginAlumnoController.alumno.tappAlmn}" required="true"/>
                    </p:inplace>

                    <p:outputLabel value="Apellido materno:" />
                    <p:inplace editor="true">
                        <p:inputText value="#{loginAlumnoController.alumno.tapmAlmn}" required="true"/>
                    </p:inplace>

                    <p:outputLabel value="Fecha de Nacimiento:" /> 
                    <p:inplace editor="true">
                        <p:calendar id="calendarAdmision" value="#{loginAlumnoController.alumno.hfecNac}" mode="popup" navigator="true" required="true"/>
                    </p:inplace>                           

                    <p:outputLabel value="DNI:" />
                    <p:inplace editor="true">
                        <p:inputText value="#{loginAlumnoController.alumno.tdni}" required="true"/>
                    </p:inplace>

                    <p:outputLabel value="Telefono:" />
                    <p:inplace editor="true">
                        <p:inputText value="#{loginAlumnoController.alumno.ttfno}" required="false"/>
                    </p:inplace>

                    <p:outputLabel value="Direccion:" />
                    <p:inplace editor="true">
                        <p:inputText value="#{loginAlumnoController.alumno.tdir}" required="false"/>
                    </p:inplace>

                    <p:outputLabel value="Email:" />
                    <p:inplace editor="true">
                        <p:inputText value="#{loginAlumnoController.alumno.temail}" required="false"/>
                    </p:inplace>

                    <p:outputLabel value="Otros telefonos:" />
                    <p:inplace editor="true">
                        <p:inputText value="#{loginAlumnoController.alumno.ttfno2}" required="false"/>
                    </p:inplace>

                </h:panelGrid>
            </p:panel>
            <p:panel header="Datos Academicos">
                <h:panelGrid columns="2" styleClass="panelGridCenter"  columnClasses="column" cellpadding="5">
                    <p:outputLabel value="Tipo de Alumno: " />
                    <p:inplace editor="true">
                        <p:inputText value="#{loginAlumnoController.alumno.ttipAlmn}" required="true"/>
                    </p:inplace>

                    <p:outputLabel value="Codigo:" />
                    <p:inplace editor="true">                        
                        <p:inputText value="#{loginAlumnoController.alumno.calmn}" required="true"/>
                    </p:inplace>

                    <p:outputLabel value="Grado academico:" />                    
                    <p:inplace editor="true">                        
                        <p:inputText value="#{loginAlumnoController.alumno.tgdo}" />
                    </p:inplace>

                    <p:outputLabel value="Carrera:" />                    
                    <p:inplace editor="true">                        
                        <p:inputText value="#{loginAlumnoController.alumno.tcr}" />
                    </p:inplace>

                    <p:commandButton value="Actualizar" action="#{loginAlumnoController.actualizarInformacion}" update="growl_alumno_actualizar" />

                </h:panelGrid>
            </p:panel>
        </h:form>
    </ui:define>

    <ui:define name="right">
    </ui:define>

</ui:composition>
